import request from '@/utils/request'

// 查询补发产品列表
export function listHairProductTable(query) {
  return request({
    url: '/system/hairProductTable/list',
    method: 'get',
    params: query
  })
}

// 查询补发产品详细
export function getHairProductTable(id) {
  return request({
    url: '/system/hairProductTable/' + id,
    method: 'get'
  })
}

// 新增补发产品
export function addHairProductTable(data) {
  return request({
    url: '/system/hairProductTable',
    method: 'post',
    data: data
  })
}

// 修改补发产品
export function updateHairProductTable(data) {
  return request({
    url: '/system/hairProductTable',
    method: 'put',
    data: data
  })
}

// 删除补发产品
export function delHairProductTable(id) {
  return request({
    url: '/system/hairProductTable/' + id,
    method: 'delete'
  })
}
